Optimal. Leaf size=208 \[ -\frac {2 (-10 B+3 i A) (a+i a \tan (e+f x))^{7/2}}{9009 c^3 f (c-i c \tan (e+f x))^{7/2}}-\frac {2 (-10 B+3 i A) (a+i a \tan (e+f x))^{7/2}}{1287 c^2 f (c-i c \tan (e+f x))^{9/2}}-\frac {(-10 B+3 i A) (a+i a \tan (e+f x))^{7/2}}{143 c f (c-i c \tan (e+f x))^{11/2}}-\frac {(B+i A) (a+i a \tan (e+f x))^{7/2}}{13 f (c-i c \tan (e+f x))^{13/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.29, antiderivative size = 208, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 45, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.089, Rules used = {3588, 78, 45, 37} \[ -\frac {2 (-10 B+3 i A) (a+i a \tan (e+f x))^{7/2}}{9009 c^3 f (c-i c \tan (e+f x))^{7/2}}-\frac {2 (-10 B+3 i A) (a+i a \tan (e+f x))^{7/2}}{1287 c^2 f (c-i c \tan (e+f x))^{9/2}}-\frac {(-10 B+3 i A) (a+i a \tan (e+f x))^{7/2}}{143 c f (c-i c \tan (e+f x))^{11/2}}-\frac {(B+i A) (a+i a \tan (e+f x))^{7/2}}{13 f (c-i c \tan (e+f x))^{13/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 37
Rule 45
Rule 78
Rule 3588
Rubi steps
\begin {align*} \int \frac {(a+i a \tan (e+f x))^{7/2} (A+B \tan (e+f x))}{(c-i c \tan (e+f x))^{13/2}} \, dx &=\frac {(a c) \operatorname {Subst}\left (\int \frac {(a+i a x)^{5/2} (A+B x)}{(c-i c x)^{15/2}} \, dx,x,\tan (e+f x)\right )}{f}\\ &=-\frac {(i A+B) (a+i a \tan (e+f x))^{7/2}}{13 f (c-i c \tan (e+f x))^{13/2}}+\frac {(a (3 A+10 i B)) \operatorname {Subst}\left (\int \frac {(a+i a x)^{5/2}}{(c-i c x)^{13/2}} \, dx,x,\tan (e+f x)\right )}{13 f}\\ &=-\frac {(i A+B) (a+i a \tan (e+f x))^{7/2}}{13 f (c-i c \tan (e+f x))^{13/2}}-\frac {(3 i A-10 B) (a+i a \tan (e+f x))^{7/2}}{143 c f (c-i c \tan (e+f x))^{11/2}}+\frac {(2 a (3 A+10 i B)) \operatorname {Subst}\left (\int \frac {(a+i a x)^{5/2}}{(c-i c x)^{11/2}} \, dx,x,\tan (e+f x)\right )}{143 c f}\\ &=-\frac {(i A+B) (a+i a \tan (e+f x))^{7/2}}{13 f (c-i c \tan (e+f x))^{13/2}}-\frac {(3 i A-10 B) (a+i a \tan (e+f x))^{7/2}}{143 c f (c-i c \tan (e+f x))^{11/2}}-\frac {2 (3 i A-10 B) (a+i a \tan (e+f x))^{7/2}}{1287 c^2 f (c-i c \tan (e+f x))^{9/2}}+\frac {(2 a (3 A+10 i B)) \operatorname {Subst}\left (\int \frac {(a+i a x)^{5/2}}{(c-i c x)^{9/2}} \, dx,x,\tan (e+f x)\right )}{1287 c^2 f}\\ &=-\frac {(i A+B) (a+i a \tan (e+f x))^{7/2}}{13 f (c-i c \tan (e+f x))^{13/2}}-\frac {(3 i A-10 B) (a+i a \tan (e+f x))^{7/2}}{143 c f (c-i c \tan (e+f x))^{11/2}}-\frac {2 (3 i A-10 B) (a+i a \tan (e+f x))^{7/2}}{1287 c^2 f (c-i c \tan (e+f x))^{9/2}}-\frac {2 (3 i A-10 B) (a+i a \tan (e+f x))^{7/2}}{9009 c^3 f (c-i c \tan (e+f x))^{7/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 17.07, size = 495, normalized size = 2.38 \[ \frac {\cos ^4(e+f x) (a+i a \tan (e+f x))^{7/2} (A+B \tan (e+f x)) \sqrt {\sec (e+f x) (c \cos (e+f x)-i c \sin (e+f x))} \left ((B-i A) \cos (6 f x) \left (\frac {\cos (3 e)}{112 c^7}+\frac {i \sin (3 e)}{112 c^7}\right )+(A+i B) \sin (6 f x) \left (\frac {\cos (3 e)}{112 c^7}+\frac {i \sin (3 e)}{112 c^7}\right )+(8 B-15 i A) \cos (8 f x) \left (\frac {\cos (5 e)}{504 c^7}+\frac {i \sin (5 e)}{504 c^7}\right )+(B-30 i A) \cos (10 f x) \left (\frac {\cos (7 e)}{792 c^7}+\frac {i \sin (7 e)}{792 c^7}\right )+(25 A-12 i B) \cos (12 f x) \left (\frac {\sin (9 e)}{1144 c^7}-\frac {i \cos (9 e)}{1144 c^7}\right )+(A-i B) \cos (14 f x) \left (\frac {\sin (11 e)}{208 c^7}-\frac {i \cos (11 e)}{208 c^7}\right )+(15 A+8 i B) \sin (8 f x) \left (\frac {\cos (5 e)}{504 c^7}+\frac {i \sin (5 e)}{504 c^7}\right )+(30 A+i B) \sin (10 f x) \left (\frac {\cos (7 e)}{792 c^7}+\frac {i \sin (7 e)}{792 c^7}\right )+(25 A-12 i B) \sin (12 f x) \left (\frac {\cos (9 e)}{1144 c^7}+\frac {i \sin (9 e)}{1144 c^7}\right )+(A-i B) \sin (14 f x) \left (\frac {\cos (11 e)}{208 c^7}+\frac {i \sin (11 e)}{208 c^7}\right )\right )}{f (\cos (f x)+i \sin (f x))^3 (A \cos (e+f x)+B \sin (e+f x))} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.10, size = 143, normalized size = 0.69 \[ \frac {{\left ({\left (-693 i \, A - 693 \, B\right )} a^{3} e^{\left (15 i \, f x + 15 i \, e\right )} + {\left (-3150 i \, A - 1512 \, B\right )} a^{3} e^{\left (13 i \, f x + 13 i \, e\right )} + {\left (-5460 i \, A + 182 \, B\right )} a^{3} e^{\left (11 i \, f x + 11 i \, e\right )} + {\left (-4290 i \, A + 2288 \, B\right )} a^{3} e^{\left (9 i \, f x + 9 i \, e\right )} + {\left (-1287 i \, A + 1287 \, B\right )} a^{3} e^{\left (7 i \, f x + 7 i \, e\right )}\right )} \sqrt {\frac {a}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}} \sqrt {\frac {c}{e^{\left (2 i \, f x + 2 i \, e\right )} + 1}}}{72072 \, c^{7} f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B \tan \left (f x + e\right ) + A\right )} {\left (i \, a \tan \left (f x + e\right ) + a\right )}^{\frac {7}{2}}}{{\left (-i \, c \tan \left (f x + e\right ) + c\right )}^{\frac {13}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.53, size = 184, normalized size = 0.88 \[ \frac {i \sqrt {a \left (1+i \tan \left (f x +e \right )\right )}\, \sqrt {-c \left (-1+i \tan \left (f x +e \right )\right )}\, a^{3} \left (1+\tan ^{2}\left (f x +e \right )\right ) \left (6 i A \left (\tan ^{5}\left (f x +e \right )\right )-160 i B \left (\tan ^{4}\left (f x +e \right )\right )-20 B \left (\tan ^{5}\left (f x +e \right )\right )-177 i A \left (\tan ^{3}\left (f x +e \right )\right )-48 A \left (\tan ^{4}\left (f x +e \right )\right )-1643 i B \left (\tan ^{2}\left (f x +e \right )\right )+590 B \left (\tan ^{3}\left (f x +e \right )\right )-1569 i A \tan \left (f x +e \right )+408 A \left (\tan ^{2}\left (f x +e \right )\right )-97 i B -776 B \tan \left (f x +e \right )-930 A \right )}{9009 f \,c^{7} \left (\tan \left (f x +e \right )+i\right )^{8}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.97, size = 276, normalized size = 1.33 \[ -\frac {{\left ({\left (693 i \, A + 693 \, B\right )} a^{3} \cos \left (\frac {13}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right )\right )\right ) + {\left (2457 i \, A + 819 \, B\right )} a^{3} \cos \left (\frac {11}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right )\right )\right ) + {\left (3003 i \, A - 1001 \, B\right )} a^{3} \cos \left (\frac {9}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right )\right )\right ) + {\left (1287 i \, A - 1287 \, B\right )} a^{3} \cos \left (\frac {7}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right )\right )\right ) - 693 \, {\left (A - i \, B\right )} a^{3} \sin \left (\frac {13}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right )\right )\right ) - 819 \, {\left (3 \, A - i \, B\right )} a^{3} \sin \left (\frac {11}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right )\right )\right ) - 1001 \, {\left (3 \, A + i \, B\right )} a^{3} \sin \left (\frac {9}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right )\right )\right ) - 1287 \, {\left (A + i \, B\right )} a^{3} \sin \left (\frac {7}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right )\right )\right )\right )} \sqrt {a}}{72072 \, c^{\frac {13}{2}} f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 13.49, size = 167, normalized size = 0.80 \[ -\frac {\sqrt {a+\frac {a\,\sin \left (e+f\,x\right )\,1{}\mathrm {i}}{\cos \left (e+f\,x\right )}}\,\left (\frac {a^3\,{\mathrm {e}}^{e\,8{}\mathrm {i}+f\,x\,8{}\mathrm {i}}\,\left (3\,A+B\,1{}\mathrm {i}\right )\,1{}\mathrm {i}}{72\,c^6\,f}+\frac {a^3\,{\mathrm {e}}^{e\,10{}\mathrm {i}+f\,x\,10{}\mathrm {i}}\,\left (3\,A-B\,1{}\mathrm {i}\right )\,1{}\mathrm {i}}{88\,c^6\,f}+\frac {a^3\,{\mathrm {e}}^{e\,6{}\mathrm {i}+f\,x\,6{}\mathrm {i}}\,\left (A+B\,1{}\mathrm {i}\right )\,1{}\mathrm {i}}{56\,c^6\,f}+\frac {a^3\,{\mathrm {e}}^{e\,12{}\mathrm {i}+f\,x\,12{}\mathrm {i}}\,\left (A-B\,1{}\mathrm {i}\right )\,1{}\mathrm {i}}{104\,c^6\,f}\right )}{\sqrt {c-\frac {c\,\sin \left (e+f\,x\right )\,1{}\mathrm {i}}{\cos \left (e+f\,x\right )}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________